import request from '@/utils/request'

// export function getList(params) {
//   return request({
//     url: '/table/list',
//     method: 'get',
//     paramsx
//   })
// }
const base_url = '/unipay/hosp/hospitalSet'

export default {
  getHospSetList(curPage, limit, searchObj) {
    return request({
      url: `${base_url}/pageQuery/${curPage}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  delHospSet(id) {
    return request({
      url: `${base_url}/removeByID/${id}`,
      method: 'delete'
    })
  },
  batchDel(idList) {
    return request({
      url: `${base_url}/batchRemove`,
      method: 'delete',
      data: idList
    })
  },
  updateStatus(id, status) {
    return request({
      url: `${base_url}/updateStatus/${id}/${status}`,
      method: 'put'
    })
  },
  create(hospitalSet) {
    return request({
      url: `${base_url}/save`,
      method: 'post',
      data: hospitalSet
    })
  },
  getBuID(id) {
    return request({
      url: `${base_url}/getByID/${id}`,
      method: 'get'
    })
  },
  update(hospitalSet) {
    return request({
      url: `${base_url}/update`,
      method: 'put',
      data: hospitalSet
    })
  },

  getCountMap(searchObj) {
    return request({
      url: `/unipay/hosp/hospital/statistics/getCountMap`,
      method: 'post',
      data: searchObj
    })
  }
}
